.wechat-test {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wechat-test h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

.config-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.config-info h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.2rem;
}

.config-info p {
  margin: 8px 0;
  color: #666;
  font-family: 'Courier New', monospace;
}

.test-section {
  margin-bottom: 30px;
}

.generate-btn {
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 20px;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.qr-section {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.qr-section h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.2rem;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-tip {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 20px 0;
}

.url-info {
  background: #f1f3f4;
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  text-align: left;
}

.url-info p {
  margin: 0 0 10px 0;
  color: #333;
  font-weight: 600;
}

.auth-url {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 0.8rem;
  color: #333;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 100px;
  overflow-y: auto;
}

.instructions {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #2196f3;
}

.instructions h3 {
  margin: 0 0 15px 0;
  color: #1976d2;
  font-size: 1.1rem;
}

.instructions ol {
  margin: 0;
  padding-left: 20px;
  color: #333;
}

.instructions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .test-container {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .wechat-test h1 {
    font-size: 1.5rem;
  }
  
  .config-info,
  .qr-section,
  .instructions {
    padding: 15px;
  }
  
  .auth-url {
    font-size: 0.7rem;
  }
} 